package cn.fzc.elasticsearch2x.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "invoice_main_2018",type = "invoice_31")
public class InvoiceMain {

    @Id
    private String id;
    private String bill_flag;
    private String buyer_account;
    private String buyer_area_code;
    private String buyer_contact;
    private String buyer_name;
    private String buyer_taxnum;
    private String cancel_flag;
    private String checker;
    private String comment;
    private String invoice_code;
    private String invoice_date;
    private String invoice_kind;
    private int invoice_num;
    private String invoicer;
    private int machine_num;
    private String net_invoice_num;
    private double notax_amount_sum;
    private String print_flag;
    private String receiver;
    private String saler_account;
    private String saler_area_code;
    private String saler_contact;
    private String saler_name;
    private String saler_taxnum;
    private double tax_amount_sum;
    private int total_amount_sum;
    private String update_date;

    public String getBill_flag() {
        return bill_flag;
    }

    public void setBill_flag(String bill_flag) {
        this.bill_flag = bill_flag;
    }

    public String getBuyer_account() {
        return buyer_account;
    }

    public void setBuyer_account(String buyer_account) {
        this.buyer_account = buyer_account;
    }

    public String getBuyer_area_code() {
        return buyer_area_code;
    }

    public void setBuyer_area_code(String buyer_area_code) {
        this.buyer_area_code = buyer_area_code;
    }

    public String getBuyer_contact() {
        return buyer_contact;
    }

    public void setBuyer_contact(String buyer_contact) {
        this.buyer_contact = buyer_contact;
    }

    public String getBuyer_name() {
        return buyer_name;
    }

    public void setBuyer_name(String buyer_name) {
        this.buyer_name = buyer_name;
    }

    public String getBuyer_taxnum() {
        return buyer_taxnum;
    }

    public void setBuyer_taxnum(String buyer_taxnum) {
        this.buyer_taxnum = buyer_taxnum;
    }

    public String getCancel_flag() {
        return cancel_flag;
    }

    public void setCancel_flag(String cancel_flag) {
        this.cancel_flag = cancel_flag;
    }

    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInvoice_code() {
        return invoice_code;
    }

    public void setInvoice_code(String invoice_code) {
        this.invoice_code = invoice_code;
    }

    public String getInvoice_date() {
        return invoice_date;
    }

    public void setInvoice_date(String invoice_date) {
        this.invoice_date = invoice_date;
    }

    public String getInvoice_kind() {
        return invoice_kind;
    }

    public void setInvoice_kind(String invoice_kind) {
        this.invoice_kind = invoice_kind;
    }

    public int getInvoice_num() {
        return invoice_num;
    }

    public void setInvoice_num(int invoice_num) {
        this.invoice_num = invoice_num;
    }

    public String getInvoicer() {
        return invoicer;
    }

    public void setInvoicer(String invoicer) {
        this.invoicer = invoicer;
    }

    public int getMachine_num() {
        return machine_num;
    }

    public void setMachine_num(int machine_num) {
        this.machine_num = machine_num;
    }

    public String getNet_invoice_num() {
        return net_invoice_num;
    }

    public void setNet_invoice_num(String net_invoice_num) {
        this.net_invoice_num = net_invoice_num;
    }

    public double getNotax_amount_sum() {
        return notax_amount_sum;
    }

    public void setNotax_amount_sum(double notax_amount_sum) {
        this.notax_amount_sum = notax_amount_sum;
    }

    public String getPrint_flag() {
        return print_flag;
    }

    public void setPrint_flag(String print_flag) {
        this.print_flag = print_flag;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getSaler_account() {
        return saler_account;
    }

    public void setSaler_account(String saler_account) {
        this.saler_account = saler_account;
    }

    public String getSaler_area_code() {
        return saler_area_code;
    }

    public void setSaler_area_code(String saler_area_code) {
        this.saler_area_code = saler_area_code;
    }

    public String getSaler_contact() {
        return saler_contact;
    }

    public void setSaler_contact(String saler_contact) {
        this.saler_contact = saler_contact;
    }

    public String getSaler_name() {
        return saler_name;
    }

    public void setSaler_name(String saler_name) {
        this.saler_name = saler_name;
    }

    public String getSaler_taxnum() {
        return saler_taxnum;
    }

    public void setSaler_taxnum(String saler_taxnum) {
        this.saler_taxnum = saler_taxnum;
    }

    public double getTax_amount_sum() {
        return tax_amount_sum;
    }

    public void setTax_amount_sum(double tax_amount_sum) {
        this.tax_amount_sum = tax_amount_sum;
    }

    public int getTotal_amount_sum() {
        return total_amount_sum;
    }

    public void setTotal_amount_sum(int total_amount_sum) {
        this.total_amount_sum = total_amount_sum;
    }

    public String getUpdate_date() {
        return update_date;
    }

    public void setUpdate_date(String update_date) {
        this.update_date = update_date;
    }


    @Override
    public String toString() {
        return "InvoiceMain{" +
                "id='" + id + '\'' +
                ", bill_flag='" + bill_flag + '\'' +
                ", buyer_account='" + buyer_account + '\'' +
                ", buyer_area_code='" + buyer_area_code + '\'' +
                ", buyer_contact='" + buyer_contact + '\'' +
                ", buyer_name='" + buyer_name + '\'' +
                ", buyer_taxnum='" + buyer_taxnum + '\'' +
                ", cancel_flag='" + cancel_flag + '\'' +
                ", checker='" + checker + '\'' +
                ", comment='" + comment + '\'' +
                ", invoice_code='" + invoice_code + '\'' +
                ", invoice_date='" + invoice_date + '\'' +
                ", invoice_kind='" + invoice_kind + '\'' +
                ", invoice_num=" + invoice_num +
                ", invoicer='" + invoicer + '\'' +
                ", machine_num=" + machine_num +
                ", net_invoice_num='" + net_invoice_num + '\'' +
                ", notax_amount_sum=" + notax_amount_sum +
                ", print_flag='" + print_flag + '\'' +
                ", receiver='" + receiver + '\'' +
                ", saler_account='" + saler_account + '\'' +
                ", saler_area_code='" + saler_area_code + '\'' +
                ", saler_contact='" + saler_contact + '\'' +
                ", saler_name='" + saler_name + '\'' +
                ", saler_taxnum='" + saler_taxnum + '\'' +
                ", tax_amount_sum=" + tax_amount_sum +
                ", total_amount_sum=" + total_amount_sum +
                ", update_date='" + update_date + '\'' +
                '}';
    }
}
